//
//  XinyuInteractionItemTableViewCell.m
//  AndCampus
//
//  Created by 史宵宵 on 2018/1/8.
//  Copyright © 2018年 史宵宵. All rights reserved.
//

#import "XinyuInteractionItemTableViewCell.h"

@implementation XinyuInteractionItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setFrame:(CGRect)frame {
    
    if (frame.origin.x==0) {
        frame.origin.x += 10;
    }
    if (frame.size.width == kScreenW) {
        
        frame.size.width -= 2 * 10;
    }
    
    [super setFrame:frame];
    
}
- (void)setInteractionInfo:(XinyuInteractionInfo *)interactionInfo{
    self.imageInteraction.image = [UIImage imageNamed:interactionInfo.image];
    self.titleLabel.text = interactionInfo.title;
    self.contenLabel.text = interactionInfo.content;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
